home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / Sample Editors⁄Viewers / Sound Editor / Source / SoundEditorBalloons.r < prev    next >
Encoding:
Text File  |  1995-12-11  |  9.5 KB  |  385 lines  |  [TEXT/MPS ]

  1. /*    Rez file for balloon document "SoundEditor Balloons" */
  2. /*    Created Sat, Nov 11, 1995 at 10:15 PM */
  3.  
  4. #include "Types.r"
  5. #include "BalloonTypes.r"
  6.  
  7. #include "SoundEditorDef.h"
  8.  
  9. //------------------------------------------------------------------------------
  10. // Constants
  11. //------------------------------------------------------------------------------
  12.  
  13. #define kBalloonStringsResID 30000
  14.  
  15. //------------------------------------------------------------------------------
  16. // Menu help resources
  17. //------------------------------------------------------------------------------
  18.  
  19. resource 'hmnu' (kSoundMenuID, purgeable) 
  20. {
  21.     HelpMgrVersion,
  22.     hmDefaultOptions,
  23.     0,
  24.     0,
  25.  
  26.         HMSTRResItem { 0,0,0,0 },            /* item -1:Default balloon for Sound */
  27.     {
  28.  
  29.         HMSTRResItem { 0,0,0,0 },            /* item 0:Menu Title */
  30.         HMStringResItem {        /* item 1:Play */
  31.             kBalloonStringsResID,1,
  32.             kBalloonStringsResID,2,
  33.             kBalloonStringsResID,3,
  34.             0,0
  35.         },
  36.         HMStringResItem {        /* item 2:Pause */
  37.             kBalloonStringsResID,4,
  38.             kBalloonStringsResID,5,
  39.             kBalloonStringsResID,6,
  40.             0,0
  41.         },
  42.         HMStringResItem {        /* item 3:Stop */
  43.             kBalloonStringsResID,7,
  44.             kBalloonStringsResID,8,
  45.             0,0,
  46.             0,0
  47.         },
  48.         HMStringResItem {        /* item 4:Record */
  49.             kBalloonStringsResID,9,
  50.             kBalloonStringsResID,10,
  51.             kBalloonStringsResID,11,
  52.             0,0
  53.         },
  54.                     HMSkipItem { },
  55.         HMStringResItem {        /* item 6:Settings… */
  56.             kBalloonStringsResID,12,
  57.             kBalloonStringsResID,13,
  58.             0,0,
  59.             0,0
  60.         }
  61.     }
  62. };
  63.  
  64. //------------------------------------------------------------------------------
  65. // Dialog help resources
  66. //------------------------------------------------------------------------------
  67.  
  68. resource 'hdlg' (kAboutBoxID, purgeable) 
  69. {
  70.     HelpMgrVersion,
  71.     0,
  72.     hmDefaultOptions,
  73.     0,
  74.     0,
  75.  
  76.         HMStringResItem {        /* Default balloon */
  77.             {0,0},
  78.             {0,0,0,0},
  79.             kBalloonStringsResID,14,
  80.             0,0,
  81.             0,0,
  82.             0,0
  83.         },
  84.     {
  85.  
  86.         HMStringResItem {        /* item 1:OK */
  87.             {0,0},
  88.             {0,0,0,0},
  89.             kBalloonStringsResID,15,
  90.             0,0,
  91.             0,0,
  92.             0,0
  93.         },
  94.         HMSTRResItem { {0,0}, {0,0,0,0}, 0,0,0,0 },            /* item 2:DITL… Item 2 */
  95.         HMSTRResItem { {0,0}, {0,0,0,0}, 0,0,0,0 },            /* item 3:DITL… Item 3 */
  96.         HMSTRResItem { {0,0}, {0,0,0,0}, 0,0,0,0 },            /* item 4:DITL… Item 4 */
  97.         HMStringResItem {        /* item 5:SoundEditor */
  98.             {0,0},
  99.             {0,0,0,0},
  100.             kBalloonStringsResID,16,
  101.             0,0,
  102.             0,0,
  103.             0,0
  104.         },
  105.         HMStringResItem {        /* item 6:SoundEditor is a simple Macintosh™ sound editor sample. It illu */
  106.             {0,0},
  107.             {0,0,0,0},
  108.             kBalloonStringsResID,17,
  109.             0,0,
  110.             0,0,
  111.             0,0
  112.         },
  113.         HMStringResItem {        /* item 7:Written by Steve Smith and Andrey Dolgachev with support from t */
  114.             {0,0},
  115.             {0,0,0,0},
  116.             kBalloonStringsResID,18,
  117.             0,0,
  118.             0,0,
  119.             0,0
  120.         },
  121.         HMStringResItem {        /* item 8:Copyright© 1994,1995 by Apple Computer, Inc. All Rights Reserve */
  122.             {0,0},
  123.             {0,0,0,0},
  124.             kBalloonStringsResID,19,
  125.             0,0,
  126.             0,0,
  127.             0,0
  128.         }
  129.     }
  130. };
  131.  
  132. resource 'hdlg' (kErrorBoxID, purgeable) 
  133. {
  134.     HelpMgrVersion,
  135.     0,
  136.     hmDefaultOptions,
  137.     0,
  138.     0,
  139.  
  140.         HMSTRResItem { {0,0}, {0,0,0,0}, 0,0,0,0 },            /* item -1:Default balloon */
  141.     {
  142.  
  143.         HMStringResItem {        /* item 1:OK */
  144.             {0,0},
  145.             {0,0,0,0},
  146.             kBalloonStringsResID,20,
  147.             0,0,
  148.             0,0,
  149.             0,0
  150.         },
  151.         HMStringResItem {        /* item 2:Cancel */
  152.             {0,0},
  153.             {0,0,0,0},
  154.             kBalloonStringsResID,21,
  155.             0,0,
  156.             0,0,
  157.             0,0
  158.         },
  159.         HMStringResItem {        /* item 3:<< Use this for errors in the Editor, such as out of memory, un */
  160.             {0,0},
  161.             {0,0,0,0},
  162.             kBalloonStringsResID,22,
  163.             0,0,
  164.             0,0,
  165.             0,0
  166.         },
  167.         HMStringResItem {        /* item 4:DITL… Item 4 */
  168.             {0,0},
  169.             {0,0,0,0},
  170.             kBalloonStringsResID,23,
  171.             0,0,
  172.             0,0,
  173.             0,0
  174.         },
  175.         HMSTRResItem { {0,0}, {0,0,0,0}, 0,0,0,0 }            /* item 5:DITL… Item 5 */
  176.     }
  177. };
  178.  
  179. resource 'hdlg' (kSettingsDialogID, purgeable) 
  180. {
  181.     HelpMgrVersion,
  182.     0,
  183.     hmDefaultOptions,
  184.     0,
  185.     0,
  186.  
  187.         HMSTRResItem { {0,0}, {0,0,0,0}, 0,0,0,0 },            /* item -1:Default balloon */
  188.     {
  189.  
  190.         HMStringResItem {        /* item 1:OK */
  191.             {0,0},
  192.             {0,0,0,0},
  193.             kBalloonStringsResID,24,
  194.             0,0,
  195.             0,0,
  196.             0,0
  197.         },
  198.         HMStringResItem {        /* item 2:Cancel */
  199.             {0,0},
  200.             {0,0,0,0},
  201.             kBalloonStringsResID,25,
  202.             0,0,
  203.             0,0,
  204.             0,0
  205.         },
  206.         HMSTRResItem { {0,0}, {0,0,0,0}, 0,0,0,0 },            /* item 3:DITL… Item 3 */
  207.         HMSTRResItem { {0,0}, {0,0,0,0}, 0,0,0,0 },            /* item 4:Recording Quality: */
  208.         HMStringResItem {        /* item 5:Good */
  209.             {6,6},                    // place tip in checkbox.
  210.             {0,0,0,0},
  211.             kBalloonStringsResID,26,
  212.             0,0,
  213.             kBalloonStringsResID,27,
  214.             0,0
  215.         },
  216.         HMStringResItem {        /* item 6:Better */
  217.             {6,6},                    // place tip in checkbox.
  218.             {0,0,0,0},
  219.             kBalloonStringsResID,28,
  220.             0,0,
  221.             kBalloonStringsResID,29,
  222.             0,0
  223.         },
  224.         HMStringResItem {        /* item 7:Best */
  225.             {6,6},                    // place tip in checkbox.
  226.             {0,0,0,0},
  227.             kBalloonStringsResID,30,
  228.             0,0,
  229.             kBalloonStringsResID,31,
  230.             0,0
  231.         },
  232.         HMSTRResItem { {0,0}, {0,0,0,0}, 0,0,0,0 }            /* item 8:DITL… Item 8 */
  233.     }
  234. };
  235.  
  236. //------------------------------------------------------------------------------
  237. // Help strings
  238. //------------------------------------------------------------------------------
  239.  
  240. resource 'STR#' (kBalloonStringsResID, "Balloon Help Strings") 
  241. {
  242.     {
  243.         /* [1] Play, Normal */
  244.             "Plays the sound contained in the active sound editor part.",
  245.         
  246.         /* [2] Play, Grayed */
  247.             "Plays the sound contained in the active sound editor part.\n"
  248.             "\n"
  249.             "Not available now because there is no sound to be played "
  250.             "or there is a sound being recorded.",
  251.         
  252.         /* [3] Play, Checked */
  253.             "Plays the sound contained in the active sound editor part.\n"
  254.             "\n"
  255.             "Checked now because the sound is currently in a playing state.",
  256.         
  257.         /* [4] Pause, Normal */
  258.             "Pauses the sound being played or recorded in the active "
  259.             "sound editor part.",
  260.         
  261.         /* [5] Pause, Grayed */
  262.             "Pauses the sound being played or recorded in the active "
  263.             "sound editor part.\n\nNot available now because there is no "
  264.             "sound being played or recorded in the active part.",
  265.         
  266.         /* [6] Pause, Checked */
  267.             "Resumes the sound being played or recorded in the active "
  268.             "sound editor part.",
  269.         
  270.         /* [7] Stop, Normal */
  271.             "Stops the sound being played or recorded in the active "
  272.             "sound editor part.",
  273.         
  274.         /* [8] Stop, Grayed */
  275.             "Stops the sound being played or recorded in the active "
  276.             "sound editor part.\n"
  277.             "\n"
  278.             "Not available now because there is no sound being played "
  279.             "or recorded in the active part.",
  280.         
  281.         /* [9] Record, Normal */
  282.             "Records a sound into the active sound editor part.",
  283.         
  284.         /* [10] Record, Grayed */
  285.             "Records a sound into the active sound editor part.\n"
  286.             "\n"
  287.             "Not available now because there is a sound being played or the "
  288.             "part cannot be modified.",
  289.         
  290.         /* [11] Record, Checked */
  291.             "Records a sound into the active sound editor part.\n"
  292.             "\n"
  293.             "Checked now because a sound is currently being recorded.",
  294.         
  295.         /* [12] Settings…, Normal */
  296.             "Sets the compression level used when recording with the "
  297.             "active part.",
  298.         
  299.         /* [13] Settings…, Grayed */
  300.             "Sets the compression level used when recording with the "
  301.             "active part.\n"
  302.             "\n"
  303.             "Not available now because a sound is already being recorded "
  304.             "or this part cannot be modified.",
  305.         
  306.         /* [14] Default balloon for DITL 20001, Normal */
  307.             "This dialog shows information about this part editor.",
  308.         
  309.         /* [15] OK, Normal */
  310.             "To dismiss this dialog box, click this button.",
  311.         
  312.         /* [16] SoundEditor, Normal */
  313.             "This is the name of the part editor for the active part.",
  314.         
  315.         /* [17] SoundEditor is a simple Macintosh™ sound editor sample. It illu, Normal */
  316.             "This is a description of the purpose of this piece of sample "
  317.             "code.",
  318.         
  319.         /* [18] Written by Steve Smith and Andrey Dolgachev with support from t, Normal */
  320.             "This is credit information for this part editor.",
  321.         
  322.         /* [19] Copyright© 1994,1995 by Apple Computer, Inc. All Rights Reserve, Normal */
  323.             "This is copyright information for this part editor.",
  324.         
  325.         /* [20] OK, Normal */
  326.             "To accept this operation and close the dialog box, "
  327.             "click this button.",
  328.         
  329.         /* [21] Cancel, Normal */
  330.             "To cancel this operation and close the dialog box, "
  331.             "click this button.",
  332.         
  333.         /* [22] << Use this for errors in the Editor, such as out of memory, un, Normal */
  334.             "This area describes why this dialog box was displayed.",
  335.         
  336.         /* [23] DITL… Item 4, Normal */
  337.             "This icon represents the part editor that is displaying "
  338.             "this icon.",
  339.         
  340.         /* [24] OK, Normal */
  341.             "To accept the settings change and close the dialog box, "
  342.             "click this button.",
  343.         
  344.         /* [25] Cancel, Normal */
  345.             "To cancel the settings change and close the dialog box, "
  346.             "click this button.",
  347.         
  348.         /* [26] Good, Normal */
  349.             "Sets the recording quality to “Good.”\n"
  350.             "\n"
  351.             "This quality uses MACE 6:1 compression when recording a sound.",
  352.         
  353.         /* [27] Good, Checked */
  354.             "Sets the recording quality to “Good.”\n"
  355.             "\n"
  356.             "This quality uses MACE 6:1 compression when recording a sound.\n"
  357.             "\n"
  358.             "Marked because this is the quality that will be used.",
  359.         
  360.         /* [28] Better, Normal */
  361.             "Sets the recording quality to “Better.”\n"
  362.             "\n"
  363.             "This quality uses MACE 3:1 compression when recording a sound.",
  364.         
  365.         /* [29] Better, Checked */
  366.             "Sets the recording quality to “Better.”\n"
  367.             "\n"
  368.             "This quality uses MACE 3:1 compression when recording a sound.\n"
  369.             "\n"
  370.             "Marked because this is the quality that will be used.",
  371.         
  372.         /* [30] Best, Normal */
  373.             "Sets the recording quality to “Best.”\n"
  374.             "\n"
  375.             "This quality does not use compression when recording a sound.",
  376.         
  377.         /* [31] Best, Checked */
  378.             "Sets the recording quality to “Best.”\n"
  379.             "\n"
  380.             "This quality does not use compression when recording a sound.\n"
  381.             "\n"
  382.             "Marked because this is the quality that will be used."
  383.     }
  384. };
  385.